list1 = [878,2231,11,223,231,123,123]
# [2231,878,231,223,123]
for i in range(len(list1)):
    for j in range(len(list1)-i-1):
        if list1[j] < list1[j+1]:
            list1[j],list1[j+1] = list1[j+1],list1[j]
print(list1)

